package com.erp.erp_entitys.Cost.entity;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author zjk
 * @version 1.0
 * @description 费用入库分摊
 * @date 2021-05-20 1:22
 */
public class CostApportionmentEntity implements Serializable {
    /**
     * 入库费用分摊id
     */
    private Integer id;

    /**
     * 费用主表编码
     */
    private String costCode;
    /**
     * 费用明细id
     */
    private Integer costDetailId;
    /**
     * 备货入库产品id
     */
    private Integer planInStoreProductId;
    /**
     * 入库单号
     */
    private String billno;
    /**
     * 出运发票号
     */
    private String carryDetailNo;
    /**
     * 入库日期
     */
    private Date instoreTime;

    /**
     * 仓库编码(id)
     */
    private String warehouseId;
    /**
     * 仓库名称
     */
    private String warehouseName;
    /**
     * 分摊费用单价
     */
    private BigDecimal apportionmentAmount;
    /**
     * 批次
     */
    private String lotNo;
    /**
     * 产品编码
     */
    private String productCode;
    /**
     * 数量
     */
    private Integer num;
    /**
     * 体积
     */
    private BigDecimal bulk;
    /**
     * 净重
     */
    private BigDecimal netWeight;
    /**
     * 毛重
     */
    private BigDecimal grossWeight;
    /**
     * 入库人
     */
    private String personName;
    /**
     * 入库人编码
     */
    private String personCode;
    /**
     * 操作员
     */
    private String operatorName;
    /**
     * 操作员编码
     */
    private String operatorCode;
    /**
     * 分摊类型(1：数量2：体积3：净重4:毛重)
     */
    private Integer allocationtype;
    /**
     * 是否有效(0:无效 1:有效)
     */
    private Integer valid;

    @Override
    public String toString() {
        return "CostApportionmentEntity{" +
                "id=" + id +
                ", costCode='" + costCode + '\'' +
                ", costDetailId=" + costDetailId +
                ", planInStoreProductId=" + planInStoreProductId +
                ", billno='" + billno + '\'' +
                ", carryDetailNo='" + carryDetailNo + '\'' +
                ", instoreTime=" + instoreTime +
                ", warehouseId='" + warehouseId + '\'' +
                ", warehouseName='" + warehouseName + '\'' +
                ", apportionmentAmount=" + apportionmentAmount +
                ", lotNo='" + lotNo + '\'' +
                ", productCode='" + productCode + '\'' +
                ", num=" + num +
                ", bulk=" + bulk +
                ", netWeight=" + netWeight +
                ", grossWeight=" + grossWeight +
                ", personName='" + personName + '\'' +
                ", personCode='" + personCode + '\'' +
                ", operatorName='" + operatorName + '\'' +
                ", operatorCode='" + operatorCode + '\'' +
                ", allocationtype=" + allocationtype +
                ", valid=" + valid +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCostCode() {
        return costCode;
    }

    public void setCostCode(String costCode) {
        this.costCode = costCode;
    }

    public Integer getCostDetailId() {
        return costDetailId;
    }

    public void setCostDetailId(Integer costDetailId) {
        this.costDetailId = costDetailId;
    }

    public Integer getPlanInStoreProductId() {
        return planInStoreProductId;
    }

    public void setPlanInStoreProductId(Integer planInStoreProductId) {
        this.planInStoreProductId = planInStoreProductId;
    }

    public String getBillno() {
        return billno;
    }

    public void setBillno(String billno) {
        this.billno = billno;
    }

    public String getCarryDetailNo() {
        return carryDetailNo;
    }

    public void setCarryDetailNo(String carryDetailNo) {
        this.carryDetailNo = carryDetailNo;
    }

    public Date getInstoreTime() {
        return instoreTime;
    }

    public void setInstoreTime(Date instoreTime) {
        this.instoreTime = instoreTime;
    }

    public String getWarehouseId() {
        return warehouseId;
    }

    public void setWarehouseId(String warehouseId) {
        this.warehouseId = warehouseId;
    }

    public String getWarehouseName() {
        return warehouseName;
    }

    public void setWarehouseName(String warehouseName) {
        this.warehouseName = warehouseName;
    }

    public BigDecimal getApportionmentAmount() {
        return apportionmentAmount;
    }

    public void setApportionmentAmount(BigDecimal apportionmentAmount) {
        this.apportionmentAmount = apportionmentAmount;
    }

    public String getLotNo() {
        return lotNo;
    }

    public void setLotNo(String lotNo) {
        this.lotNo = lotNo;
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public BigDecimal getBulk() {
        return bulk;
    }

    public void setBulk(BigDecimal bulk) {
        this.bulk = bulk;
    }

    public BigDecimal getNetWeight() {
        return netWeight;
    }

    public void setNetWeight(BigDecimal netWeight) {
        this.netWeight = netWeight;
    }

    public BigDecimal getGrossWeight() {
        return grossWeight;
    }

    public void setGrossWeight(BigDecimal grossWeight) {
        this.grossWeight = grossWeight;
    }

    public String getPersonName() {
        return personName;
    }

    public void setPersonName(String personName) {
        this.personName = personName;
    }

    public String getPersonCode() {
        return personCode;
    }

    public void setPersonCode(String personCode) {
        this.personCode = personCode;
    }

    public String getOperatorName() {
        return operatorName;
    }

    public void setOperatorName(String operatorName) {
        this.operatorName = operatorName;
    }

    public String getOperatorCode() {
        return operatorCode;
    }

    public void setOperatorCode(String operatorCode) {
        this.operatorCode = operatorCode;
    }

    public Integer getAllocationtype() {
        return allocationtype;
    }

    public void setAllocationtype(Integer allocationtype) {
        this.allocationtype = allocationtype;
    }

    public Integer getValid() {
        return valid;
    }

    public void setValid(Integer valid) {
        this.valid = valid;
    }
}
